tests: Add parsing test for background-size
authorBenjamin Otte <otte@redhat.com>
Tue, 17 Jan 2012 14:15:34 +0000 (15:15 +0100)
committerBenjamin Otte <otte@redhat.com>
Thu, 2 Feb 2012 02:14:01 +0000 (03:14 +0100)
tests/css/parser/Makefile.am
tests/css/parser/background-size.css [new file with mode: 0644]
tests/css/parser/background-size.ref.css [new file with mode: 0644]

index 8b6b32004f44d506472d12c2c4f52c2d7eca4515..44bf32ae183a8b510294f98e68391cb7911d8eb7 100644 (file)
@@ -153,6 +153,8 @@ EXTRA_DIST += \
        background-repeat.ref.css \
        background-shorthand.css \
        background-shorthand.ref.css \
+        background-size.css \
+        background-size.ref.css \
        boolean.css \
        boolean.errors \
        boolean.ref.css \
diff --git a/tests/css/parser/background-size.css b/tests/css/parser/background-size.css
new file mode 100644 (file)
index 0000000..ea75a05
--- /dev/null
@@ -0,0 +1,51 @@
+a {
+  background-size: cover;
+}
+
+b {
+  background-size: contain;
+}
+
+c {
+  background-size: auto;
+}
+
+d {
+  background-size: auto auto;
+}
+
+e {
+  background-size: auto 100%;
+}
+
+f {
+  background-size: 100% auto;
+}
+
+g {
+  background-size: 100%;
+}
+
+h {
+  background-size: auto 10px;
+}
+
+i {
+  background-size: 10px auto;
+}
+
+j {
+  background-size: 10px;
+}
+
+k {
+  background-size: 10px 100%;
+}
+
+l {
+  background-size: 100% 10px;
+}
+
+m {
+  background-size: 10px 10px;
+}
diff --git a/tests/css/parser/background-size.ref.css b/tests/css/parser/background-size.ref.css
new file mode 100644 (file)
index 0000000..b3ce6bf
--- /dev/null
@@ -0,0 +1,51 @@
+a {
+  background-size: cover;
+}
+
+b {
+  background-size: contain;
+}
+
+c {
+  background-size: auto;
+}
+
+d {
+  background-size: auto;
+}
+
+e {
+  background-size: auto 100%;
+}
+
+f {
+  background-size: 100%;
+}
+
+g {
+  background-size: 100%;
+}
+
+h {
+  background-size: auto 10px;
+}
+
+i {
+  background-size: 10px;
+}
+
+j {
+  background-size: 10px;
+}
+
+k {
+  background-size: 10px 100%;
+}
+
+l {
+  background-size: 100% 10px;
+}
+
+m {
+  background-size: 10px 10px;
+}